<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	
	<title><?php echo CHtml::encode(Yii::app()->name) . ' - ' . CHtml::encode($this->pageTitle); ?></title>
	<meta name="description" content="">
	<meta name="author" content="Martin Gelder">
	
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	
	<link rel="shortcut icon" href="/favicon.ico">
	<link rel="apple-touch-icon" href="/apple-touch-icon.png">
	
	<link rel='stylesheet' href='http://fonts.googleapis.com/css?family=Droid+Sans:400,700|Amaranth' />
	<link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/css/boilerplate.css" />
	<link rel="stylesheet/less" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.less" />
	
	<script src="<?php echo Yii::app()->request->baseUrl; ?>/js/libs/less-1.1.3.min.js"></script>
	<script src="<?php echo Yii::app()->request->baseUrl; ?>/js/libs/modernizr-1.7.min.js"></script>
</head>
<body id="dsitc">
	<div id="page">
		<header>
			<div class="container">
				<div id="logo"><a href="<?php echo Yii::app()->baseUrl; ?>"><?php echo CHtml::encode(Yii::app()->name); ?></a></div>
			</div>
		</header>

		<?php $this->renderPartial('//layouts/fragments/mainmenu', null, false, true); ?>

		<?php if(count(Yii::app()->menu->get('breadcrumbs')) > 0) {
			$this->renderPartial('//layouts/fragments/breadcrumbs', null, false, true);
		} ?>

		<div id="main" role="main" class="container">
			<?php echo $content; ?>
		</div>

		<footer>
			<div class="container">
				<div class="copyright"><?php echo Yii::t('core', 'Copyright © {year} by {owner}.', array('{year}' => date('Y'), '{owner}' => Yii::app()->params['owner.title'])); ?></div>
				<div class="rights"><?php echo Yii::t('core', 'All Rights Reserved.'); ?></div>
				<div class="yiipowered"><?php echo Yii::powered(); ?></div>
			</div>
		</footer>
	</div>
</body>
</html>